﻿using System;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            //// 初始化做菜的两个工厂（）
            //Creator shreddedPorkWithPotatoesFactory = new ShreddedPorkWithPotatoesFactory();
            //Creator tomatoScrambledEggsFactory = new TomatoScrambledEggsFactory();

            //// 开始做西红柿炒蛋
            //Food tomatoScrambleEggs = tomatoScrambledEggsFactory.CreateFoodFactory();
            //tomatoScrambleEggs.Print();

            ////开始做土豆肉丝
            //Food shreddedPorkWithPotatoes = shreddedPorkWithPotatoesFactory.CreateFoodFactory();
            //shreddedPorkWithPotatoes.Print();



            //// 如果客户又想点肉末茄子了
            //// 再另外初始化一个肉末茄子工厂
            //Creator minceMeatEggplantFactor = new MincedMeatEggplantFactory();

            //// 利用肉末茄子工厂来创建肉末茄子这道菜
            //Food minceMeatEggplant = minceMeatEggplantFactor.CreateFoodFactory();
            //minceMeatEggplant.Print();


            new Context(0).Print();
            new Context(1).Print();
            new Context(2).Print();
        }
    }
}
